package com.edgegateway.system.mapper;

import java.util.List;
import com.edgegateway.system.domain.IotEdgeDevices;

/**
 * 边缘设备Mapper接口
 * 
 * @author ruoyi
 * @date 2023-01-03
 */
public interface IotEdgeDevicesMapper 
{
    /**
     * 查询边缘设备
     * 
     * @param id 边缘设备主键
     * @return 边缘设备
     */
    public IotEdgeDevices selectIotEdgeDevicesById(String id);

    /**
     * 查询边缘设备列表
     * 
     * @param iotEdgeDevices 边缘设备
     * @return 边缘设备集合
     */
    public List<IotEdgeDevices> selectIotEdgeDevicesList(IotEdgeDevices iotEdgeDevices);

    /**
     * 新增边缘设备
     * 
     * @param iotEdgeDevices 边缘设备
     * @return 结果
     */
    public int insertIotEdgeDevices(IotEdgeDevices iotEdgeDevices);

    /**
     * 修改边缘设备
     * 
     * @param iotEdgeDevices 边缘设备
     * @return 结果
     */
    public int updateIotEdgeDevices(IotEdgeDevices iotEdgeDevices);

    /**
     * 删除边缘设备
     * 
     * @param id 边缘设备主键
     * @return 结果
     */
    public int deleteIotEdgeDevicesById(String id);

    /**
     * 批量删除边缘设备
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteIotEdgeDevicesByIds(String[] ids);

    void updateByTopic(IotEdgeDevices devices);

    IotEdgeDevices getByTopic(String topic);

    List<IotEdgeDevices> getAll();

    void updateList(List<IotEdgeDevices> edgeDevicesList);
}
